<extend name="Public/base" />

<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="{:U('Auth/department')}" class="tip-bottom">部门管理</a>
				<a href="{:U('Auth/team',array('department_id'=>$department_id))}" class="tip-bottom">小组管理</a>
				
				<a href="javascript:void(0);" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
		          	<div class="widget-content tab-content">
		            	<div class="tab-pane active">
		            		<!-- 用户列表 -->
		              		<div class="widget-content ">
								<table class="table table-bordered table-striped with-check">
									<thead>
										<tr>
											<th><input type="checkbox" /></th>
											<th>UID</th>
											<th>昵称</th>
											<th>推广链接</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
									<notempty name="_list">
										<volist name="_list" id="vo">
											<tr>
												<td class="taskStatus"><input type="checkbox" value="{$vo.uid}" name="uid[]" class="ids"/></td>
												<td class="taskStatus">{$vo.uid}</td>
												<td class="taskStatus">{$vo.login_name}</td>
												<td class="taskStatus">&sdsfd_extend={$vo.uid|encryptUrl}</td>
												<td class="taskStatus">
													<a href="{:U('removeUserFromTeam',array('member_id'=>$vo['uid'],'team_id'=>I('team_id')))}" class="ajax-get">取消授权</a>
												</td>
											</tr>
										</volist>
									<else/>
										<tr>
											<td colspan="7" class="taskStatus"> Oh~亲爱滴,暂时还没有内容! </td>
										</tr>
									</notempty>
									</tbody>
								</table>
								<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
									{$_page}
								</div>
							</div>
							<!-- 增加按钮 -->
							<form action="{$post_url}" class="form-horizontal add_users" method="post">
								<div class="controls">
									<button class="btn btn-success pull-right ajax-post" url="{:U('teamMember')}" target-form="add_users" type="submit">新增</button>
									<input type="text" onkeyup="value=value.replace(/[\uFF00-\uFFFF]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\uFF00-\uFFFF]/g,''))" maxlength="16" name="uid" class="ui-wizard-content pull-right" placeholder="请输入uid,多个用英文逗号分隔" >
									<input type="hidden" name="team_id" value="{:I('team_id')}">
								</div>
							</form>
		            	</div>
		          </div>
		        </div>
			</div>
		</div>
		<div class="row-fluid"></div>
	</div>
</div>
<script type="text/javascript">
highlight_subnav("{:U('Auth/department')}");
</script>
</block>
